package com.daxt.utils;

public class StringUtil {


    public static String split(String classNum) {
        String[] split = classNum.split("·");
        String classNum1 ="";
        for (int i=0 ;i<split.length;i++){
            if (i<1){
                classNum1 += split[i]+"·";
            }else {
                classNum1 += split[i];
            }
        }
//        classNum.
        return classNum1;
    }

    public static void main(String[] args) {
        String s ="0-H-H1-H11";
        String substring = s.substring(2);

        System.out.println(substring);
        String replace = substring.replace("-", "·");
        System.out.println(replace);
//        String s1 ="";
//        String[] split = s.split("0-");
//        for (int i=0 ;i<split.length;i++){
//            System.out.println(split[i]);
//        }
    }
}
